//package com.zhangtai.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.session.web.http.CookieSerializer;
//import org.springframework.session.web.http.DefaultCookieSerializer;
//import org.springframework.stereotype.Component;
//
//@Configuration
//public class CookieCros {
//
//    @Bean
//    public CookieSerializer httpSessionIdResolver() {
//        DefaultCookieSerializer cookieSerializer = new DefaultCookieSerializer();
//        cookieSerializer.setUseHttpOnlyCookie(false);
//        cookieSerializer.setSameSite("None");
//        cookieSerializer.setCookiePath("/");
//        cookieSerializer.setUseSecureCookie(true);
//        return cookieSerializer;
//    }
//}
